// JavaScript Document
 function  check(data)
	{
		if(data>=0 && data<=9)
		{
			return "0"+data;
		}
		else
		return data;
	}
	function  gettime()
	{
		systemtime="";
		var date=new Date();
		var year=date.getFullYear();
		systemtime=systemtime+year+"年";
		var month=date.getMonth();
        systemtime=systemtime+(month+1)+"月";
		var dates=date.getDate();
		systemtime=systemtime+dates+"日";
		var day=date.getDay();
	    switch(day)
	    {
	    	case 0:{
	    		day="星期日";
	    		break;
	    	}
	    		
	    	case 1:{
	    		day="星期一";
	    		break;
	    	}
	    		
	    	case 2:{
	    		day="星期二";
	    		break;
	    	}
	    		
	    	case 3:{
	    		day="星期三";
	    		break;
	    	}
	    		
	    	case 4:{
	    		day="星期四";
	    		break;
	    	}
	    		
	    	case 5:{
	    		day="星期五";
	    		break;
	    	}
	    	case 6:{
	    		day="星期六";
	    		break;
	    	}
	    }
        systemtime=systemtime+"   "+day+"  ";
		document.getElementById("timestate").innerHTML="";
		document.getElementById("timestate").innerHTML=systemtime;
	}	
//显示系统时间	
	function  showtime()
	{
		setInterval(gettime,1000);
	}
	showtime();
	
	window.onload=function(){
	if (result1 != 'null' && result1 != undefined) {
		alert(result1);
		}
	if (result2 != 'null' && result2 != undefined) {
		alert(result2);
	
}
	}